package com.elong.businesstravel.protocol.city;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

import org.apache.http.HttpEntity;
import org.apache.http.entity.StringEntity;
import org.json.JSONObject;

import android.content.Context;

import com.android.support.jhf.network.loopj.android.http.RequestParams;
import com.elong.businesstravel.base.mcrypt.MCrypt;
import com.elong.businesstravel.include.Version;
import com.elong.businesstravel.protocol.ProtocolDef;
import com.elong.businesstravel.protocol.baserequest.BaseELongHttpRequest;

/**
 * 根据城市获取poi
 * 
 * @author lenovo
 * 
 */
public class GetPoiByCityRequest extends BaseELongHttpRequest {


	public GetPoiByCityRequest(Context context, String cityId) {
		super(context);

		try {
			JSONObject jsonObject = new JSONObject();
			jsonObject.put("cityid", cityId);
			setRequestActionParam(ProtocolDef.ACTION_GetCityPoi, jsonObject);
		} catch (Exception e) {
			e.printStackTrace();
		}

	}


	public String getCacheKey() {

		String keyString = null;
		try {
			keyString = createRequestParams().toString();
		} catch (Exception e) {
			e.printStackTrace();
		}
		return keyString;
	}

}
